
<?php
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/app/collection.js', CClientScript::POS_BEGIN);
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/app/collectionInvoiceList.js', CClientScript::POS_BEGIN);
?>
<div id="left-col">
    <?php $this->renderPartial('_side') ?>



</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">


            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">
                <div style="padding:3px;"></div>                               
                <h1>Invoices</h1>
                <br/>
                <table width="400" border="1">
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadInvoices(30);">30</a></td>
                        <td>Days Past Due</td>
                        <td><span id="invoice-30"></span></td>
                    </tr>
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadInvoices(60);">60</a></td>
                        <td>Days Past Due</td>
                        <td><span id="invoice-60"></span></td>
                    </tr>
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadInvoices(90);">90</a></td>
                        <td>Days Past Due</td>
                        <td><span id="invoice-90"></span></td>
                    </tr>
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadInvoices(120);">120</a></td>
                        <td>Days Past Due</td>
                        <td><span id="invoice-120"></span></td>
                    </tr>
                </table>
                <br/>
                <h1>Sales Order</h1>
                <br/>
                <table width="400" border="1">
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadSalesOrder(30);">30</a></td>
                        <td>Days Past Due</td>
                        <td><span id="salesOrder-30"></span></td>
                    </tr>
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadSalesOrder(60);">60</a></td>
                        <td>Days Past Due</td>
                        <td><span id="salesOrder-60"></span></td>
                    </tr>
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadSalesOrder(90);">90</a></td>
                        <td>Days Past Due</td>
                        <td><span id="salesOrder-90"></span></td>
                    </tr>
                    <tr>
                        <td><a href="javascript:void(0)" onclick="reloadSalesOrder(120);">120</a></td>
                        <td>Days Past Due</td>
                        <td><span id="salesOrder-120"></span></td>
                    </tr>
                </table>
                <br/>

                <div class="form">
                    <form>
                        <div class="row">
                            <label>Type</label>
                            <select id="type">
                                <option value="">N/A</option>
                                <option value="Invoice">Invoice</option>
                                <option value="Sales Order">Sales Order</option>
                            </select>
                        </div>
                        <div class="row">
                            <label>Past Due Days</label>
                            <select id="pastdue">
                                <option value="">N/A</option>
                                <option value="30">30</option>
                                <option value="60">60</option>
                                <option value="90">90</option>
                                <option value="120">120</option>
                            </select>
                        </div>
                    </form>
                </div>
                <div id="invoice-list">                       
                </div>                
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->